package cn.service.impl;

import cn.service.CategoryAttributesService;
import entity.Result;
import mapper.CategoryAttributesMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CategoryAttributesServiceImpl implements CategoryAttributesService {
    @Resource
    CategoryAttributesMapper categoryAttributesMapper;

    @Override
    public Result getAllAttribute(Long parent_id) {
        return Result.success(categoryAttributesMapper.getAllAttribute(parent_id));
    }
}
